<%@page import="com.nuaa.domain.overseas.LocalDisEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	LocalDisEntity localInfo = (LocalDisEntity)request.getAttribute("localInfo");
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div data-options="region:'center',split:false" style="padding:30px;">
<form id='local_order_form' method="post">
	<input type="hidden" name="id" value=<%=localInfo.getId()%>>
	<table align="center">
		<tr><td colspan="2" style="text-align:center;color:blue;font-weight:bold">订单明细</td></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=localInfo.getOrder_no()%></td>
		</tr>
		<tr>
			<td>客户编号</td>
			<td>&nbsp;<%=localInfo.getCustomer_no()%></td>
		</tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=localInfo.getBusiness_type()%></td>
		</tr>
		<tr>
			<td>下单时间</td>
			<td>&nbsp;<%=localInfo.getCreate_tm()%></td>
		</tr>
		<tr>
			<td>产品数量</td><td>&nbsp;<input class="easyui-validatebox textbox" data-options="required:true,validType:'integer'" name="pro_number" value=<%=localInfo.getPro_number()%>></td>
		</tr>
		<tr>
			<td>物流公司</td>
			<td>&nbsp;<input class="easyui-validatebox textbox"  name=logiCompany value=<%=localInfo.getLogiCompany()==null?"":localInfo.getLogiCompany()%>></td>
		</tr>
		<tr>
			<td>物流单号</td><td>&nbsp;<input class="easyui-validatebox textbox"  name="logiNumber" value=<%=localInfo.getLogiNumber()==null?"":localInfo.getLogiNumber()%>></td>
		</tr>
		<tr>
			<td>收货人</td><td>&nbsp;<input class="easyui-validatebox textbox" data-options="required:true" name="receiver" value="<%=localInfo.getReceiver()%>"></td>
		</tr>
		<tr>
    		<td>收货地址</td>  
        	<td>
        		&nbsp;<input class="easyui-textbox" data-options="required:true,multiline:true" style="height: 50px;" name="dis_address" value="<%=localInfo.getDis_address()%>">
			 </td> 
    	</tr>
	</table>
	</form>
</div>
<script>
	function subLocalMod(){
		$("#local_order_form").form('submit', {    
			url:'customer/overseas_business/subLocalMod.do',   
		    onSubmit: function(){//发送前操作
		    	var isValid = $(this).form('validate');
				return isValid;	// 返回false终止表单提交
		    },    
		    success:function(data) {
		    	var data = eval('(' + data + ')');  
			        if(data.success == true){
			        	$.messager.alert('提示','<strong><center>'+data.msg+'</center></strong>');
			        	$("#local_order_form :input").val('');
			        	$("#wait_local_mod_dialog").dialog('close');
			        	$("#all_local_mod_dialog").dialog('close');
			        	$("#non_local_mod_dialog").dialog('close');
			        	$("#proce_local_mod_dialog").dialog('close');
			        }else{    
			        	$.messager.alert('警告','<strong><center>'+data.msg+'</center></strong>');    
			        }
			        $("#wait_local_mod_dialog").empty();
		        	$("#all_local_mod_dialog").empty();
			     }  
		});  
	}
</script>
